package com.ecoolex.discount.sales.pojo;

import com.ecoolex.framework.common.annotation.Description;
import org.springframework.lang.NonNull;

import java.util.Date;

@Description({"编辑折扣销售运营策略"})
public class EditDiscountProductOperationStrategyDTO {

    @Description({"开始销售日期"})
    private Date startSalesDate;

    @Description({"结束销售日期"})
    private Date endSalesDate;

    @Description({"品牌内列表权重; 降序"})
    @NonNull
    private Integer brandWeight;

    @Description({"是否是新的"})
    @NonNull
    private Boolean isNew;

    public Date getStartSalesDate() {
        return startSalesDate;
    }

    public EditDiscountProductOperationStrategyDTO setStartSalesDate(Date startSalesDate) {
        this.startSalesDate = startSalesDate;
        return this;
    }

    public Date getEndSalesDate() {
        return endSalesDate;
    }

    public EditDiscountProductOperationStrategyDTO setEndSalesDate(Date endSalesDate) {
        this.endSalesDate = endSalesDate;
        return this;
    }

    @NonNull
    public Integer getBrandWeight() {
        return brandWeight;
    }

    public EditDiscountProductOperationStrategyDTO setBrandWeight(@NonNull Integer brandWeight) {
        this.brandWeight = brandWeight;
        return this;
    }

    @NonNull
    public Boolean getIsNew() {
        return isNew;
    }

    public EditDiscountProductOperationStrategyDTO setIsNew(@NonNull Boolean isNew) {
        this.isNew = isNew;
        return this;
    }

    @Override
    public String toString() {
        return "EditDiscountProductOperationStrategyDTO{" +
                "startSalesDate=" + startSalesDate +
                ", endSalesDate=" + endSalesDate +
                ", brandWeight=" + brandWeight +
                ", isNew=" + isNew +
                '}';
    }
}
